package com.baizhi.dao;

import com.baizhi.entity.City;
import com.baizhi.entity.Student;
import com.baizhi.entity.Tag;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentDao {

    /*每页显示条数*/
    public static final Integer PAGE_SIZE = 5;

    /*添加学生*/
    void insertStudent(Student student);

    /*删除*/
    void deleteStudentById(Integer id);

    /*修改*/
    void updateStudent(Student student);

    /*分页查询所有*/
    List<Student> selectAllByPage(@Param("column") String column, @Param("value") String value, @Param("pageIndex") Integer pageIndex);

    /*查询的总条数*/
    Integer getCountByLike(@Param("column") String column, @Param("value") String value);

    /*根据id查询一名*/
    Student selectStudentById(Integer id);

    /*根据小组查询学生人数*/
    Integer selectStudentByGroupId(Integer groupId);




}

